package co.th.bjc.md.business.impl;

import co.th.bjc.md.business.LoginBusiness;
import co.th.bjc.md.dao.LoginDao;
import co.th.bjc.md.model.Login;

public class LoginBusinessImpl implements LoginBusiness{

	private LoginDao loginDao;

	public void setLoginDao(LoginDao loginDao) {
		this.loginDao = loginDao;
	}

	@Override
	public Login verifyLogin(Login login) throws Exception {
//		return loginDao.findByUsername(login.getUsername());
		return loginDao.verifyLogin(login.getUsername(), login.getPassword());
	}

}
